import request from '@/utils/request'

// 查询车票申请列表
export function listTicketApply(query) {
  return request({
    url: '/oa/ticketApply/list',
    method: 'get',
    params: query
  })
}

// 查询车票申请详细
export function getTicketApply(id) {
  return request({
    url: '/oa/ticketApply/' + id,
    method: 'get'
  })
}

// 新增车票申请
export function addTicketApply(data) {
  return request({
    url: '/oa/ticketApply',
    method: 'post',
    data: data
  })
}

// 修改车票申请
export function updateTicketApply(data) {
  return request({
    url: '/oa/ticketApply',
    method: 'put',
    data: data
  })
}

// 删除车票申请
export function delTicketApply(id) {
  return request({
    url: '/oa/ticketApply/' + id,
    method: 'delete'
  })
}
